package com.shop.pojo;

import java.util.Date;

public class Product {
    private String id;

    private String name;

    private Double marketPrice;

    private Double shopPrice;

    private String image;

    private Date date;

    private Integer isHot;

    private String desc;

    private Integer isDelete;

    private Integer isSell;

    public void setImage(String image) {
        this.image = image;
    }

    public Product() {}

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Double getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(Double marketPrice) {
        this.marketPrice = marketPrice;
    }

    public Double getShopPrice() {
        return shopPrice;
    }

    public void setShopPrice(Double shopPrice) {
        this.shopPrice = shopPrice;
    }

    public String getImage() {
        return image;
    }

    //    public void setImage(String image) {
    //        this.image = image == null ? null : image.trim();
    //    }

    //    /** TODO 此处添加了代码 */
    //    public void setImages(String[] images) {
    //        StringBuffer sb = new StringBuffer();
    //        if (images != null) {
    //            for (String s : images) {
    //                sb.append(s);
    //            }
    //        }
    //        setImage(sb.toString());
    //    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getIsHot() {
        return isHot;
    }

    public void setIsHot(Integer isHot) {
        this.isHot = isHot;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc == null ? null : desc.trim();
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getIsSell() {
        return isSell;
    }

    public void setIsSell(Integer isSell) {
        this.isSell = isSell;
    }
}
